<script setup>
import { ref, reactive } from 'vue'
const tableData = [
  {
    name: 'G1',
    value: 600
  },
  {
    name: 'G2',
    value: 600
  },
  {
    name: 'G3',
    value: 600
  },
  {
    name: 'G4',
    value: 600
  },
  {
    name: 'A1',
    value: 600
  }
]
</script>

<template>
  <div class="wrapper">
    <div class="title">本月各楼宇总费用排名</div>
    <div class="content">
      <el-table :data="tableData" style="width: 100%">
        <el-table-column type="index" label="排名" width="80" />
        <el-table-column prop="name" label="楼宇排名" />
        <el-table-column prop="value" label="金额(元)" />
      </el-table>
      <el-pagination
        v-model:current-page="currentPage4"
        v-model:page-size="pageSize4"
        :page-sizes="[2, 3, 4, 5]"
        :size="size"
        :disabled="disabled"
        layout="pager,sizes,jumper"
        :total="10"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
      />
    </div>
  </div>
</template>

<style lang="scss" scoped>
.wrapper {
  width: 400px;
  height: 100%;
  background-color: $bigScreenBg;

  .title {
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    color: #fff;
    text-align: left;
    border-bottom: 1px solid #fff;
    padding-left: 2rem;
  }
  .content {
    padding: 0 20px;
  }
}
:deep() {
  .el-table {
    background-color: transparent !important;
    pointer-events: none;
    th {
      background-color: transparent !important;
      @include colorWhite;
    }
  }
  .el-table tr {
    background-color: transparent;
    height: 70px;
    @include colorWhite;
  }
  .el-pagination {
    width: 100%;
    overflow: hidden;
    margin-top: 10px;
    background-color: transparent !important;
    .el-select {
      width: 80px;
    }
  }
  .el-pager li {
    background-color: transparent;
    @include colorWhite;
  }
  .el-select__wrapper {
    background-color: transparent;
    @include colorWhite;
  }
  .el-pagination__editor.el-input {
    width: 35px;
  }
  .el-select__placeholder {
    @include colorWhite;
  }
  .el-pagination__jump {
    @include colorWhite;
  }
}
</style>
